{% extends 'bugs/base.html' %}
{% load staticfiles %}

{% block title %}登录{% endblock %}
{% block extrastyle %}

{% endblock %}

{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-sm-2" id="add_top"></div>

            <div class="col-sm-8" id="add_cent">

                <div class="panel panel-default" id="add_pan">
                    <div class="panel-body">
                        <p id="add_yh">添加用戶</p>
                    </div>
                </div>
                <div class="panel panel-default" id="pancont">
                    <div class="panel-body">
                        <br>
                        <form class="form-horizontal" method="post" action="/add_user/">
                            {% csrf_token %}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">工號</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="userid" id="userid" placeholder="工号">

                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="c_name" id="c_name" placeholder="姓名">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">英文名</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="e_name" id="e_name" placeholder="英文名">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">密碼</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" name="password" id="password"
                                           placeholder="密码">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">權限</label>
                                <div class="col-sm-10">
                                    <select class="form-control" name="authority" id="authority">
                                        <option style="">admin</option>
                                        <option style="">user</option>
                                        <option style="">engineer</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">分机号</label>
                                <div class="col-sm-10">
                                    <input type="phone" class="form-control" name="phone" id="phone"
                                           placeholder="phone">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">Team</label>
                                <div class="col-sm-10">
                                    <select class="form-control" id="select_team" name="team"
                                            style="width:100%;">
                                        <option value="Coex">Coex</option>
                                        <option value="Desense">Desense</option>
                                        <option value="BBHW">BBHW</option>
                                        <option value="OTA">OTA</option>
                                        <option value="WiPAS">WiPAS</option>
                                        <option value="PM">PM</option>
                                        <option value="WiPAS">WiPAS</option>
                                        <option value="Chamber">Chamber</option>
                                        <option value="EMC">EMC</option>
                                        <option value="EE">EE</option>
                                        <option value="EE_Validation">EE_Validation</option>
                                        <option value="FATP Data Process">FATP Data Process</option>
                                    </select>
                                </div>
                            </div>
                            {% if message %}
                                <p value="{{ message }}">{{ message }}</p>
                            {% endif %}
                            <div class="form-group">
                                <div class="col-sm-offset-4 col-sm-4">
                                    <button id="submit_adduser" type="submit" class="btn btn-primary btn-lg"
                                            data-toggle="modal" data-target="#myModal">
                                        <p style="width: 200px">
                                            提&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;交</p>
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}